package account;

/**
 * Created by cuiyong on 15/7/27.
 */
public class PersonalCredit {
    private Account account;

    public PersonalCredit(Account account) {
        this.account = account;
    }

    public void  checkCreditLimit(long amount) throws PersonalCreditLimitException {
        if (getAmountLimit() < amount) {
            throw new PersonalCreditLimitException("个人信用额度不足");
        }
    }

    public long getAmountLimit() {
        return 5;
    }
}
